<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
    

		 	
	<!--  Class  row-->	
	<s:action name="classAction!showClass" namespace="/"/>
	 <div class="row">
		
			<fieldset>
			<legend><strong>商品分类</strong></legend>
				<div class="accordion" id="accordion2">
						<s:iterator value="#request.firstClassList" id="firstClass" status="first">
							<div class="accordion-group">
					              <div class="accordion-heading">
					                <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#<s:property value='#firstClass.name'/>">
					                 	<strong><s:property value="#firstClass.name"/></strong>
					                </a>
					              </div>
					              <div id="<s:property value='#firstClass.name'/>" class="accordion-body collapse" style="height: 0px; ">
					                <div class="accordion-inner">
									<ul>
										<s:iterator value="#firstClass.secondClasses" id="secondClass" status="second">
											<li><a href="goodsAction!showBySecondId?secondId=<s:property value='#secondClass.id'/> "><s:property value="#secondClass.name"/></a></li></br>						
										</s:iterator>				
					</ul>
	                </div>
	              </div>
	            </div>
	       </s:iterator> 	
				
	            </div><!-- end of accordion  -->
			  </fieldset>
			
	  </div>
	<!-- end of Class row------------------------------------------------------------------------------------------------------------------- -->

		  
<!-- hotlist  row-----------------------------------------------------------------------------------------------------------------------------  -->
<div class="row">
	
		<div class="hotlist">	
		<legend><strong>大家都在看</strong></legend>
	<s:action name="goodsAction!showHotGoods" namespace="/" executeResult="false" />
	  <s:iterator value="#request.hotGoodsList" id="goods">
		<div class="item">	
			
			<div class="img">	
				<a href="goodsAction!showGoods?id=<s:property value='#goods.id'/>">
					<img id="hotImg" src="pic/<s:property value='#goods.pic'/>">
				</a>
			</div>
		
			<div class="info">
                    <div class="title">
                    	<a href="goodsAction!showGoods?id=<s:property value='#goods.id'/>">
                    			<s:property value="#goods.name"/>
                   		</a>
                    </div>
				    <div class="price">￥<s:property value="#goods.price"/></div>
					<div class="preprice">￥<s:property value="#goods.oldPrice"/></div>
				    <div class="place"><s:property value="#goods.place"/></div>
			 </div>
	  </div>  
	  </s:iterator>	 	   
	</div>

</div>
<!-- end of hotlist row ------------------------------------------------------------------------------------------------------------------- -->
